﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CardQuery.aspx.cs" Inherits="admin_product_CardQuery" %>



<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>万礼通后台管理系统</title>
    <link href="../main.css" rel="stylesheet" type="text/css" />

	<script type="text/javascript" language="javascript">
	    function CheckSelect(del, str) {
	        var rt = true;
	        var num = 0;
	        var boxorder = 0;
	        var objCheckBox;
	        for (var i = 0; i < form1.length; i++) {
	            ///alert(form1.elements[i].type);
	            if (form1.elements[i].type == "checkbox") {
	                boxorder++;
	                objCheckBox = form1.elements[i];
	                ///alert(objCheckBox.checked);
	                if (objCheckBox.checked) {
	                    if (boxorder > 1) {
	                        //如果是第一个CheckBox，是用来全选全消的，这个不算，不用自加
	                        num++;
	                    }
	                }
	            }
	        }
	        ///alert(num);
	        if (!del) {
	            if (num > 1) {
	                alert("此操作不允许选择多个事件");
	                rt = false;
	            }
	        }
	        if (str == 'del') {
	            if (num == 0) {
	                alert("你没有选择要开卡的记录");
	                rt = false
	            } else { return confirm('你确定要对选种的卡片开卡吗?'); }
	            ///alert(rt);
	        }
	        else {
	            if (str == 'update') {
	                if (num == 0) {
	                    alert("你没有选择要更新的信息");
	                    rt = false
	                } else { return confirm('你确定要更新这些信息吗?'); }
	                ///alert(rt);
	            }
	        }
	        return rt;
	    }

	    function SelectAll(sa) {
	        ///全选/全消
	        var objCheckBox;
	        for (var i = 0; i < form1.length; i++) {
	            if (form1.elements[i].type == "checkbox") {
	                objCheckBox = form1.elements[i];
	                objCheckBox.checked = sa;
	            }
	        }
	    }
</script>
    <style type="text/css">
        #ordercode
        {
            width: 143px;
        }
        .style1
        {
            width: 3%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <br />

      <table width="98%" border="0" cellpadding="0" cellspacing="4" bgcolor="#FAFBFC" class="img">
    <tr>
      <td width="4%"><img height="22" alt="SEARCH" src="../images/icon_search.gif" width="26" border="0" /></td>
      <td class="style1">卡号</td>
      <td width="30%">
          <input size="12" name="cardcodeFrom" id="cardcode" 
              runat="server" />

                 <asp:ImageButton ID="ibtnSearch" ImageUrl="../images/button04.gif" runat="server" OnClick="ibtnSearch_Click" />
</td>
       <td id="tdCompany" runat="server" width="8%">&nbsp;</td>
      <td id="tdCompanySelect" runat="server" width="10%">
              &nbsp;</td>
      <td width="8%" align="left">&nbsp;</td>
      <td width="10%" align="left">
     
      
          &nbsp;</td>
      <td width="15%" align="left">
          &nbsp;
      &nbsp;
      </td>
   
    </tr>
  </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F1F4F7">
<tr>
<td height="382" align="center" valign="top">
  <br />
  
  <asp:GridView ID="GridView1" runat="server" Width="90%" CellPadding="4" 
        ForeColor="#333333" AutoGenerateColumns="False" 
        AllowPaging="True" pagesize="100" BorderStyle="Solid" BorderWidth="1px" OnRowDataBound="GridView1_RowDataBound"
      ShowFooter="false" EmptyDataText="没有数据记录！！" AllowSorting="True" >
        <Columns>
          
        <asp:BoundField HeaderText="卡 号" DataField="cardcode" sortexpression="cardcode" />
        <asp:BoundField HeaderText="金 额" DataField="cardPrice" sortexpression="cardPrice" />
         
        <asp:BoundField HeaderText="状 态" DataField="states" sortexpression="states" />
        <asp:BoundField HeaderText="使用情况"  DataField="code" sortexpression="code"  />
    
        </Columns>
             <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />             
             <PagerStyle BackColor="White" ForeColor="#333333" HorizontalAlign="Center" Font-Bold="True" Font-Size=30px />
             <HeaderStyle BackColor="#E2E7EB" Font-Bold="True" ForeColor="Black" HorizontalAlign="Left" />
             <AlternatingRowStyle BackColor="White" />
             <PagerSettings Visible="False" />
        </asp:GridView>
     <table width="90%" border="0" cellspacing="0" cellpadding="0">
       <tr>
         <td bgcolor="#E9ECEF">
             &nbsp;</td>
               
       </tr>
  
          </table>
</td>
    </tr>
  </table>
    </div>
    </form>
</body>
</html>
